#include "stdafx.h"
#include "Lexer_MemoryManager.h"

void Lexer_MemoryManager::Destroy()
{
	__super::Destroy();
	for(int i=0;i<ChList.Size();i++)
	{
		if(ChList[i])
		{
			delete ChList[i];
			ChList[i] = 0;
		}
	}
	ChList.Clear();
	for(int i=0;i<StrList.Size();i++)
	{
		if(StrList[i])
		{
			delete StrList[i];
			StrList[i] = 0;
		}
	}
	StrList.Clear();
	for(int i=0;i<StringList.Size();i++)
	{
		if(StringList[i])
		{
			delete[] StringList[i];
			StringList[i] = 0;
		}
	}
	StringList.Clear();
}